docker build for salad and salad_app.py to setup environment #204
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a special docker build and
salad_app.py
to automatically download the model when the container starts up and then start the API.The
Dockerfile.salad
is a pretty simple approach to customize the livepeer runner container to enable auto model downloading and startup after download by using thelivepeer/ai-runner:base
tag by default (or will use--build-arg BASE_IMAGE=[image tag]
set on launch ofdocker build
). SAM2 would start with thelivepeer/ai-runner:segment-anything-2
tag inBASE_IMAGE
.Salad Container Group Setup
url
used with the external container in aiModels.json.::
to enable the salad gateway to allocate requests to the port.Example Environment Variables